<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Insurance Window</title>
  </head>
  <body>
    <table border="1">
      <tr>
        <td><table border=0><td width="55"> 旅客姓名: </td>
          <td width="70"><input type="text" readonly onmouseover="this.select()"  size=10 value="<%=@passenger_name%>"></td>
          <td width="55"> 证件类型: </td>
          <td width="60"><%=@card_type%></td>
          <td width="55"> 证件号码: </td>
          <td width="130"><input type="text" readonly onmouseover="this.select()" size=15  value="<%=@card%>"></td>
          <td width="55"> 乘机日期: </td>
        <td width="70"><input type="text" readonly onmouseover="this.select()" size=8 value="<%=@fly_date%>"></td></table><td>
      </tr>
      <tr>
        <td><iframe id="isurance_win" name="isurance_win" src="https://epcis-agent.paic.com.cn/j_security_check?j_username=QDHJSWYXGS-00001&j_password=liutao666" scrolling="auto" width="800" height="500">
        </iframe></td>
      </tr>
    </table>
    <script>
        function setInsuranceUrl(){
            //alert($('isurance_win').readyState);
            if ($('isurance_win').readyState == "complete") {
                //alert('Ready!!!!!');
                var url = "https://epcis-agent.paic.com.cn/agentApply.do?planCode=250";
                document.frames[0].location.replace(url);
                //$('isurance_win').src="";
                //$('isurance_win').contentWindow.document.location.href = url;
            }
            else {
                setTimeout("setInsuranceUrl()", 1000);
            }
        }
        setInsuranceUrl();
    </script>
  </body>
</html>
